import Vue from 'vue';
import Vuex from 'vuex'; //引入 vuex
import store from './store' //注册store
// Module
import vuexApp from './module/app' // app.vue
import vuexLogin from './module/Login';
//sys
import vuexUser from './Sys/User'
import vuexRole from './Sys/Role'
import vuexFunction from './Sys/Function'
import vuexMenus from './Sys/Menus'
import vuexRoleFunction from './Sys/RoleFunction'
import vuexChangePassword from './Sys/ChangePassword'
import vuexAppLog from './Sys/AppLog'

Vue.use(Vuex); //使用 vuex
export default new Vuex.Store({
    modules: {
        vuexLogin,
        vuexApp,
        //sys
        vuexUser,
        vuexRole,
        vuexFunction,
        vuexMenus,
        vuexRoleFunction,
        vuexChangePassword,
        vuexAppLog
    }
})